<?php
/**
 * @file   Adminrole.php
 * @date   2017-11-15 15:22:57
 * @author huwhis<huuwhois>
 * @version  0.0.1
 */

namespace app\admin\model;

class Adminrole extends \think\Model
{
    protected $table ='dean_adminrole';

    public function adminroleName()
    {
        return $this->column('id,role_name');
    }

    public function getAdminroleName($id = '')
    {
        $data = $this->adminroleName();
        return $data[$id];
    }

    public function getAdminrolePermi($id)
    {
        return $this->find($id)->per_ids;
    }
}
